package com.test.pattern.adapter.class_adapter;

/**
 * @ClassName: Client
 * @description:
 * @author: Mr du
 * @create: 2024-02-20 21:58
 */
public class Client {

    public static void main(String[] args) {
        //创建计算机对象
        Computer computer = new Computer();
        //从sd卡中读取数据
        String msg = computer.readSD(new SDCardImpl());
        System.out.println(msg);
        System.out.println("==========================");
        //从适配器类中读取TF卡数据
        String s = computer.readSD(new SDAdapterTF());
        System.out.println(s);
    }
}
